package com.ht.aems.fesmonitor.actions.view;

import com.ht.aems.fesmonitor.PointManagerFrame;
import com.ht.aems.fesmonitor.chart.ChartFrame;
import com.ht.aems.swing.util.MyAction;
import com.ht.aems.swing.util.SwingUtil;

import javax.swing.plaf.basic.BasicInternalFrameTitlePane;
import java.awt.event.ActionEvent;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

/**
 * Created by IntelliJ IDEA.
 *
 * @author Dong Shufeng
 *         Date: 2008-7-19
 */
public class ChartLook extends MyAction {
    ChartFrame ps;
    public void actionPerformed(ActionEvent e) {
       if (SwingUtil.showAlreadyExsistFrame(ChartFrame.class)) {
           ps.refreshAction();
           return;
       }
        ps = new ChartFrame();
        ps.setVisible(true);
    }
}
